package cn.zhou.basic.service;

import cn.zhou.basic.query.BaseQuery;
import cn.zhou.basic.util.PageList;

import java.util.List;

public interface IBaseService<T> {
    //查所有
    List<T> loadAll();
    //查1个
    T loadById(Long id);
    //新增
    void add(T t);
    //修改
    void update(T t);
    //删除
    void remove(Long id);

    PageList<T> queryPage(BaseQuery query);


    void patchremove(List<Long> ids);

}


